package com.ctshk.sapp.visa.controller;


import com.ctshk.common.annotations.OperationLogAnnotation;
import com.ctshk.common.dto.Result;
import com.ctshk.common.enums.OperationLogModel;
import com.ctshk.common.enums.OperationLogType;
import com.ctshk.common.model.PageResponse;
import com.ctshk.rpc.visa.dto.visa.VisaManageDTO;
import com.ctshk.rpc.visa.dto.visa.VisaOrderListDTO;
import com.ctshk.rpc.visa.req.visa.VisaManageColletionReq;
import com.ctshk.rpc.visa.req.visa.VisaManageDetailReq;
import com.ctshk.rpc.visa.req.visa.VisaManageReq;
import com.ctshk.rpc.visa.req.visa.VisaOrderListReq;
import com.ctshk.rpc.visa.service.IVisaManageService;
import com.ctshk.rpc.visa.service.IVisaOrderService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.apache.dubbo.config.annotation.DubboReference;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;
import com.ctshk.common.web.support.BaseController;

import java.util.List;

/**
 * <p>
 * 签证管理 前端控制器
 * </p>
 *
 * @author 陈雷
 * @since 2021-03-03
 */
@Api(value="订单操作-签证管理", tags="订单操作-签证管理")
@RestController
@RequestMapping("/visa-manage")
public class VisaManageController extends BaseController {
    @DubboReference
    private IVisaManageService iVisaManageService;
    @ApiOperation(value="签证管理列表", notes="签证管理列表(陈雷)")
    @OperationLogAnnotation(operModul = OperationLogModel.CUSTOM, operType = OperationLogType.QUERY, operTitle = "签证管理列表", operDesc = "签证管理列表")
    @PostMapping("/list")
    public Result<List<VisaManageDTO>> list(@RequestBody VisaManageReq visaManageReq) {
        return iVisaManageService.list(visaManageReq);
    }

    @ApiOperation(value="签证管理详情", notes="签证管理详情(陈雷)")
    @OperationLogAnnotation(operModul = OperationLogModel.CUSTOM, operType = OperationLogType.QUERY, operTitle = "签证管理列表", operDesc = "签证管理列表")
    @PostMapping("/detail")
    public Result<VisaManageDTO> detail(@RequestBody VisaManageDetailReq visaManageDetailReq) {
        return iVisaManageService.detail(visaManageDetailReq);
    }

    @ApiOperation(value="收齐证件", notes="收齐证件(陈雷)")
    @OperationLogAnnotation(operModul = OperationLogModel.CUSTOM, operType = OperationLogType.QUERY, operTitle = "签证管理列表", operDesc = "签证管理列表")
    @PostMapping("/visaManage")
    public Result visaManage(@RequestBody VisaManageColletionReq visaManageColletionReq) {
        return iVisaManageService.visaManage(visaManageColletionReq);
    }
}
